<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add User</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {	color: #666666;
	font-weight: bold;
}
.STYLE4 {color: #000000}
.STYLE5 {color: #666666}
-->
</style>
<style>
.form-invalid {
background-color:#FFFFFF;
	border-color:#CC3300;
}
</style>
</head>
<body>
<script>
	function checkAndSubmit(){
		var form = document.getElementById("changePasswordForm");
		if ( form.password.value ==""){
			alert("密码不能为空!");
			form.password.focus();
			return false;
		}
		if ( form.password.value != form.passwordcfg.value){
			alert("两次输入密码不正确");
			form.password.focus();
			return false;
		}
		form.submit();
	}
</script>
<div  align="center">更新密码</div>
<form method="post" action="changePassword.action" id="changePasswordForm">

<table  width="80%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"  align="center">
 
	<tr>
		<td   class="tdbgcolor1" >用户账号:</td>
		<td   class="tdbgcolor1"><s:property value='bean.name'/></td>
	</tr>
	<tr>
		<td  class="tdbgcolor2">密码:</td>
		<td  class="tdbgcolor2"><input type="password" name="password" id="password" /></td>
	</tr> 
	<tr>
	<td class="tdbgcolor1" >确认密码:</td>
		<td class="tdbgcolor1"><input type="password" name="passwordcfg" id="passwordcfg" style="Gray"/></td>
	</tr>		
	 
	<tr>

		<td colspan="2" class="tdbgcolor1">
			<input  type="hidden" id="userId" name="userId" value="<s:property value='bean.id'/>"/>
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input	type="button" value="reset" /> &nbsp;
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
		</tr>
		<tr>
		<td colspan="2">
			<s:property value='message'/>
		</td>
		</tr>
</table>
</form>
</body>
</html>
